/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.shop.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.persistence.DataEntity;


/**
 * 栏目信息Entity
 * @author 陈雨乾
 * @version 2019-05-15
 */
public class Cate extends DataEntity<Cate> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 栏目名称
	private String icon;		// 图标
	private String url;		// 跳转地址
	private String type;		// 栏目类型
	private String parentid;		// 父类ID
	private String parentids;		// 祖类ID
	
	public Cate() {
		super();
	}

	public Cate(String id){
		super(id);
	}

	@Length(min=0, max=255, message="栏目名称长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Length(min=0, max=255, message="图标长度必须介于 0 和 255 之间")
	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}
	
	@Length(min=0, max=255, message="跳转地址长度必须介于 0 和 255 之间")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
	@Length(min=0, max=255, message="栏目类型长度必须介于 0 和 255 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=255, message="父类ID长度必须介于 0 和 255 之间")
	public String getParentid() {
		return parentid;
	}

	public void setParentid(String parentid) {
		this.parentid = parentid;
	}
	
	@Length(min=0, max=255, message="祖类ID长度必须介于 0 和 255 之间")
	public String getParentids() {
		return parentids;
	}

	public void setParentids(String parentids) {
		this.parentids = parentids;
	}


}